<template>
  <div>
    <div id="map"></div>
  </div>
</template>

<script>
export default {
  name: "",
  props: {},
  components: {},
  data() { return {} },
  computed: {},
  watch: {},
  methods: {
    init() {
      var viewer = new Cesium.Viewer('map');
      viewer.imageryLayers.addImageryProvider(new Cesium.TiandituImageryProvider({
        credit: new Cesium.Credit('天地图全球影像服务 '),
        token: SUPERMAP_CONFIG.TOKEN_TIANDITU
      }));
      var imageryLayers = viewer.imageryLayers;
      //初始化天地图全球中文注记服务，并添加至影像图层
      var labelImagery = new Cesium.TiandituImageryProvider({
        mapStyle: Cesium.TiandituMapsStyle.CIA_C, //天地图全球中文注记服务（经纬度投影）
        token: SUPERMAP_CONFIG.TOKEN_TIANDITU
      });
      imageryLayers.addImageryProvider(labelImagery);
    }
  },
  beforeCreate() { },
  created() { },
  beforeMount() { },
  mounted() {
    let _this = this;
    _this.init();
  },
  beforeUpdate() { },
  updated() { },
  beforeDestroy() { },
  destroyed() { },
}
</script>
<style scoped>
</style>